#!/usr/bin/python3
# coding: utf-8

forum_headers = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
    "Accept-Encoding": "gzip, deflate",
    "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
    "Cache-Control": "no-cache",
    "Connection": "keep-alive",
    "Cookie": "lastupdate=1523152012; __cfduid=d04c1fffd9c808c8c5b0401aa39d019771523151541; aafaf_ol_offset=97; UM_distinctid=162a2e8167554-04dd4e0a2ce118-14281c0d-100200-162a2e8167619c; CNZZDATA1261158850=266005381-1523150787-null%7C1523150787; aafaf_threadlog=%2C17%2C; aafaf_readlog=%2C846891%2C; aafaf_lastpos=F17; aafaf_lastvisit=376%091523152259%09%2Fpw%2Fthread.php%3Ffid%3D17",
    "Host": "{}",
    "Pragma": "no-cache",
    "Upgrade-Insecure-Requests": "1",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36",
}

thread_headers = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
    "Accept-Encoding": "gzip, deflate",
    "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
    "Cache-Control": "no-cache",
    "Connection": "keep-alive",
    "Cookie": "lastupdate=1523152514; __cfduid=d04c1fffd9c808c8c5b0401aa39d019771523151541; aafaf_ol_offset=97; UM_distinctid=162a2e8167554-04dd4e0a2ce118-14281c0d-100200-162a2e8167619c; CNZZDATA1261158850=266005381-1523150787-null%7C1523150787; aafaf_threadlog=%2C17%2C; aafaf_readlog=%2C846891%2C; aafaf_lastpos=other; aafaf_lastvisit=444%091523152514%09%2Fpw%2Fhitcache.php%3Ftid%3D1095509",
    "Host": "{}",
    "Pragma": "no-cache",
    "Upgrade-Insecure-Requests": "1",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36",
}


def forum(host=None):
    forum_headers['Host'] = forum_headers['Host'].format(host)
    return forum_headers


def thread(host=None):
    thread_headers['Host'] = thread_headers['Host'].format(host)
    return thread_headers
